Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Collect Links
[View Sample]
This javascript collects all links on your page in a separate window.
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- function LinkList() { var myheader = "<head><title>Links In "+document.title+"</title></head>"; myheader = myheader + "<body>"; var myfont = "<font style=\"font: 8pt Verdana, Arial, Helvetica, Sans-serif; line-height:18pt;\" face=\"verdana, tahoma, geneva\" size=\"-1\" >"; var mytext = "<center><b>Link list: " + document.title + "</b><ol></center>"; var myendfont = "</font>"; var myendheader = "</body>"; windowprops = "menubars=no,location=no,toolbars=no,scrollbars=yes,"+"width=250,height=300,top=50,left=50"; self.name = "main"; if(document.all) { for (i=0; i<document.links.length; i++) { if(document.links[i].innerText) if(document.links[i].innerText != " ") mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i].innerText+"</a><br>"; else mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i]+"</a><br>" ; } } else { for (i=0; i<document.links.length; i++) { if(document.links[i].text) { if(((document.links[i].text).indexOf("javascript:")) == -1) { mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i].text+"</a><br>" ; } } else { } } } mytext = mytext + "</ol><center><a href='javascript:window.close()'>close window</a></center><BR>"; linkswin = window.open("","",windowprops); with (linkswin.document) { open(); write(myheader + myfont + mytext + myendfont + myendheader); close(); } } // End --> </script>
Insert into <BODY>
<center> This script collects all links on your page <br> <br> To see an example click <a href="javascript:LinkList();">here</a> <br><br> or click this button <form><input type=button onClick="LinkList();" value="Button"></form> <p>Main page <a href="http://www.jsmadeeasy.com/" target="_top">http://www.jsmadeeasy.com/</a>
Other Options